    <div class="toppage">    	
    	  <span class="left">
        	<select style="width: 130px;" id="action">
            	<option value="1">Chọn hành động</option>
                <option value="delete">Xóa</option>                               
            </select>          
             <input value="Apply" class="btn" type="submit"> 
        </span>      
    </div>
    <div class="tableout">
    
    	<form method="post" action="<?php echo action_link('do_action'); ?>" id="action_form">

		<div class="title1">
        	<div class="column" style="width: 2%;"><input class="check_all" onclick="check_all(this)" type="checkbox"></div>            
            <div class="column" style="width: 5%;">STT</div>            
            <div class="column" style="width: 30%;">Họ tên</div>
            <div class="column" style="width: 20%;">Email</div>            
            <div class="column" style="width: 30%;">Nội dung</div>
            <div class="column" style="width: 10%;">Ngày tháng</div>            
        </div>
        
        <?php if(count($all_booking) > 0): ?>
        <?php $limit = $this->config->item('booking', 'limit'); ?>
        <?php foreach($all_booking as $i => $pro): ?>
        <div class="linecate2" id="linecate2">
        	<div class="column" style="width: 2%;"><input name="id[]" value="<?php echo $pro->id; ?>" type="checkbox" /></div>
            
            <div class="column" style="width: 5%;">
            	<a href="javascript:;" class="art"><?php echo $i+1; ?></a><br>
            </div>
            
            <div id="row_<?php echo $pro->id;?>">
            
            <div class="column" style="width: 30%;" onmouseover="Hovercat('<?php echo $pro->id; ?>')" onmouseout="Outcat('<?php echo $pro->id; ?>')">
            <?php $customer_info = $this->booking_model->get_customer_info_by_id($pro->id_customer);?>
            	<a href="javascript:;" class="art"><?php echo character_limiter($customer_info->fullname,50)?></a>
                <div class="action" id="neocat-<?php echo $pro->id; ?>">
                    <img src="<?php echo img_link('edit.gif', 'admin'); ?>"><a href="javascript:void(0)" onclick="open_form('<?php echo action_link('view/'.$pro->id); ?>')">Xem</a><img src="<?php echo img_link('delete.gif', 'admin'); ?>"><a href="javascript:void(0)" onclick="contacts_delete('<?php echo $pro->id; ?>')"><font color="#be0000">Xóa</font></a>
                </div>
            </div>
            
            <div class="column" style="width: 20%;"><?php echo character_limiter($customer_info->email,50); ?></div>
            
            <div class="column" style="width: 30%;"><?php echo character_limiter($pro->contents,50); ?></div>
            
            <div class="column" style="width: 10%;"><font class="date"><?php echo date('d-m-Y', strtotime($pro->date_create)); ?></font></div>
            
            </div>
        </div>
		<?php endforeach; ?>
		<?php endif; ?>

        <div class="bottom1">
        	<div class="column" style="width: 2%;"><input class="check_all" onclick="check_all(this)" value="" type="checkbox"></div>
            <div class="column" style="width: 50%;">
            	<select style="width: 130px;" id="action_name" name="action">
                    <option value="">Chọn hành động</option>
                    <option value="delete">Xóa</option>
                </select>
                <input value="Apply" class="btn" type="submit">
            </div>
            <span class="right1">
            	
                <div class="pagination">
                	
                    <ul>
                    <?php echo $pagnav; ?>
                    </ul>
                </div>
            </span>
        </div>
        
        </form>
        
    </div>

<script>
$('#action_form').iframer({
    onComplete: function(msg){
    	if(msg == 'yes') {
    		load_content('booking_list', '<?php echo current_link(); ?>', true);
    	}
    	else show_error('div_message', msg)
    }
});
</script>